set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
 
find_package(OpenCV REQUIRED)
 
message(STATUS "OpenCV library status:")
message(STATUS "    version: ${OpenCV_VERSION}")
message(STATUS "    libraries: ${OpenCV_LIBS}")
message(STATUS "    include path: ${OpenCV_INCLUDE_DIRS}")
 
find_package(PCL 1.8 REQUIRED)
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})

find_package(Ceres REQUIRED)
include_directories(${CERES_INCLUDE_DIRS})
 
add_executable(ceres_icp ceres_icp.cpp)
target_link_libraries(ceres_icp   
    ${PCL_LIBRARIES} 
  ${CERES_LIBRARIES})  #${OpenCV_LIBS} ${PCL_LIBRARIES}
